﻿using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Ebase.Common.Helper;
using Ebase.IServices;
using Ebase.Model;
using Ebase.Model.Models;
using Ebase.Model.ViewModels;
using Ebase.SwaggerHelper;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using StackExchange.Profiling;
using static Ebase.Extensions.CustomApiVersion;


namespace Ebase.Controllers
{
    /// <summary>
    /// 测试
    /// </summary>
    [Produces("application/json")]
    [Route("api/Test")]

    public class TestController : ControllerBase
    {

        public IBlogArticleServices _blogArticleServices { get; set; }
        private readonly ILogger<TestController> _logger;


        // GET: api/<TestController>
        [HttpGet]
        public IEnumerable<string> Get()
        {
            return new string[] { "value1", "value2" };
        }

        // GET api/<TestController>/5
        [HttpGet("{id}")]
        public string Get(int id)
        {
            return "value";
        }

        // POST api/<TestController>
        [HttpPost]
        public void Post([FromBody] string value)
        {
        }

        // PUT api/<TestController>/5
        [HttpPut("{id}")]
        public void Put(int id, [FromBody] string value)
        {
        }

        // DELETE api/<TestController>/5
        [HttpDelete("{id}")]
        public void Delete(int id)
        {
        }
    }
}
